<?php

$cp = CurlPool::instance();

$opt = array(
	CURLOPT_HEADER => false 
	);
$opt2 = array(
	CURLOPT_HEADER => false ,
	CURLOPT_TIMEOUT => 10,
	);

$c1 = $cp->requestCurlHandler("http://baidu.com/", $opt);

$c2 = $cp->requestCurlHandler("http://google.com", $opt);

var_dump("step 1 " , $cp, $c1, $c2);

$cp->releaseCurlHandler($c1);
$cp->releaseCurlHandler($c2);


var_dump("step 2 " , $cp);


$c1 = $cp->requestCurlHandler("http://baidu.com/?1", $opt);

$c2 = $cp->requestCurlHandler("http://google.com", $opt2);

var_dump("step 3 " , $cp, $c1, $c2);
